import hashlib
from flask import jsonify
from flask import request
from flask_restful import Resource

from OAPro.app import oa
from OAPro import api
from OAPro.models import Account


class BaseViewSet(Resource):
    def __init__(self):
        self.result = {
            'version': "v1.0",
            'code': 200,
            'data': []
        }

class AccountViewSet(BaseViewSet):
    def get(self):
        return jsonify(self.result)

    def post(self):
        return jsonify(self.result)

    def put(self):
        return jsonify(self.result)

    def delete(self):
        return jsonify(self.result)

api.add_resource(
    AccountViewSet,
    '/account/'
)